Skip to content

Conversation

@jbraun2025
Copy link
Contributor

@jbraun2025 jbraun2025 commented Nov 26, 2025

Fixes: #60 Compiler error: overloaded functions have similar conversions

Added coversion of JSON object member to std::string_view before comparison with other std::string_view

…ersions' when comparing basic_json to std::string_view
@hankhsu1996
Copy link
Owner

Hi, just got back from vacation. Thank you for your contribution. Can you fix the formatting issue that is failing the CI?

@jbraun2025
Copy link
Contributor Author

Hi. Yes, I'll look into it. It seems MSVC is less strict about implicit conversions, that's why the fix compiles on my machine.

@jbraun2025
Copy link
Contributor Author

I don't know what causes clang-format to fail here.

@hankhsu1996
Copy link
Owner

You would need clang-format-19 to format it. You can set it up in your IDE to let it handle auto formatting, or run clang-format -i /path/to/file.cpp to format the file directly.

@jbraun2025
Copy link
Contributor Author

Thank you for the hint. Visual Studio has automatic clang-format built-in, but it seems that the change was too small to trigger it. Making more changes or running clang-format from the command line inserts the line break.

@hankhsu1996
Copy link
Owner

LGTM, I'll merge it

@hankhsu1996 hankhsu1996 merged commit b6babe9 into hankhsu1996:main Dec 3, 2025
5 checks passed
@jbraun2025 jbraun2025 deleted the bugfix/compiler-error-overloaded-functions-have-similar-conversions branch December 3, 2025 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiler error: overloaded functions have similar conversions

2 participants